package com.entity;


import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Timestamp;

public class Order {

  private Integer id;
  private Integer orderId;
  private Integer cardId;
  private Integer cardType;
  private double price;
  private double pay;
  private Integer credit;
  private Integer status;
  private String momo;
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  private java.sql.Timestamp createdTime;
  private Double priceSum;
  private Integer month;
  private Cardtype cardtype;


  public Order() {
  }

  public Cardtype getCardtype() {
    return cardtype;
  }

  public void setCardtype(Cardtype cardtype) {
    this.cardtype = cardtype;
  }

  public Double getPriceSum() {
    return priceSum;
  }

  public void setPriceSum(Double priceSum) {
    this.priceSum = priceSum;
  }

  public Integer getMonth() {
    return month;
  }

  public void setMonth(Integer month) {
    this.month = month;
  }

  @Override
  public String toString() {
    return "Order{" +
            "id=" + id +
            ", orderId=" + orderId +
            ", cardId=" + cardId +
            ", cardType=" + cardType +
            ", price=" + price +
            ", pay=" + pay +
            ", credit=" + credit +
            ", status=" + status +
            ", momo='" + momo + '\'' +
            ", createdTime=" + createdTime +
            ", priceSum=" + priceSum +
            ", month=" + month +
            '}';
  }

  public Order( Integer month,Double priceSum) {
    this.priceSum = priceSum;
    this.month = month;
  }

  public Order(Integer id, Integer orderId, Integer cardId, Integer cardType, double price, double pay, Integer credit, Integer status, String momo, Timestamp createdTime) {
    this.id = id;
    this.orderId = orderId;
    this.cardId = cardId;
    this.cardType = cardType;
    this.price = price;
    this.pay = pay;
    this.credit = credit;
    this.status = status;
    this.momo = momo;
    this.createdTime = createdTime;
  }


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public Integer getOrderId() {
    return orderId;
  }

  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }


  public Integer getCardId() {
    return cardId;
  }

  public void setCardId(Integer cardId) {
    this.cardId = cardId;
  }


  public Integer getCardType() {
    return cardType;
  }

  public void setCardType(Integer cardType) {
    this.cardType = cardType;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }


  public double getPay() {
    return pay;
  }

  public void setPay(double pay) {
    this.pay = pay;
  }


  public Integer getCredit() {
    return credit;
  }

  public void setCredit(Integer credit) {
    this.credit = credit;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public String getMomo() {
    return momo;
  }

  public void setMomo(String momo) {
    this.momo = momo;
  }


  public java.sql.Timestamp getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(java.sql.Timestamp createdTime) {
    this.createdTime = createdTime;
  }

}
